package com.quanyan.place.mapper;

import com.quanyan.place.entity.TbBannerCity;
import com.quanyan.place.entity.apireq.ReqBannerByCondition;
import com.quanyan.place.entity.apiresp.RespBannerAdmin;
import com.quanyan.place.entity.apiresp.RespBannerPosition;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by yue.yuan on 2017/5/24.
 */
public interface AppBannerMapper {
    int batchInsertBannerCity(@Param("list") List<TbBannerCity> bannerCities);

    List<RespBannerAdmin> queryBannerByCondition(
            @Param("map")ReqBannerByCondition condition);

    Integer countBannerByCondition(@Param("map")ReqBannerByCondition condition);

    int countEffectiveBanner(@Param("positionId")int positionId);
}
